import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/company_api_config_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/company_api_config_entity.g.dart';

/// 企业接口配置
@JsonSerializable()
class CompanyApiConfigEntity {
  CompanyApiConfigEntity();

  factory CompanyApiConfigEntity.fromJson(Map<String, dynamic> json) => $CompanyApiConfigEntityFromJson(json);
  late String id = '';

  /// 瓦片地址
  late List<String> tileAddress = [];

  /// 地形地址
  late List<String> terrainAddress = [];

  /// 人脸识别地址
  late List<String> faceUrl = [];

  /// 企业唯一编码
  late String companyCode = '';

  late String createDate = '';

  late String updateDate = '';

  Map<String, dynamic> toJson() => $CompanyApiConfigEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
